package controllers;
import play.*;
import play.data.validation.Valid;
import play.libs.Mail;
import play.mvc.*;


import java.util.*;

import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;

import models.*;

public class Emails extends Controller {
    public static void mailSend (Email email){
    	
       	try {
			email.sendEmail();
			
		} catch (EmailException exception) {
			
			exception.printStackTrace();
		}		
		
		render(email);
    	
    }
    
	public static void sendEmail(){
    	render();}
}
